<?php

/**
 * @author Invisible Man
 * @copyright 2013
 */

function keyword($keyword, $fullname) {
    $keyword_lower = strtolower($keyword);
    $fullname_lower = strtolower($fullname);
    $keyname = '<b>'.$keyword.'</b>';
    $key_pos = mb_strpos($fullname_lower, $keyword_lower, 0, "UTF-8");
    $key_length = strlen($keyword);
    $full_length = strlen($fullname);
    $full_end = $full_length - $key_length;
    $full_sub = mb_substr($fullname, $key_length, $full_end, "UTF-8");
    echo $keyname .'<br />'. $key_pos . '<br />'. $full_length .'<br />'.$full_end . '<br />'. $full_sub;
    $keyname .= $full_sub;
    return $keyname;
}
echo keyword('ll', 'Hello');
?>